#ifndef DIALOG_H
#define DIALOG_H
#pragma once

class Dialog {
public:
	Dialog();
	Dialog(HINSTANCE hAppInstance, int DlgResourceId);

	HWND MakeDialog(HWND parent);

protected:
	virtual BOOL WINAPI HandleMessage(UINT WindowMessage, WPARAM wParam, LPARAM lParam) = 0;

	HWND WindowHandle;

	HINSTANCE hInstance;

	int ResourceId;

private:
	static BOOL WINAPI MessageRouter(HWND WindowHandle, UINT WindowMessage, WPARAM wParam, LPARAM lParam);

};

#endif